package com.kaifamiao.service;

import com.kaifamiao.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    List<UserModel> findAll();

    UserModel findById(Long id);

    int addUser(UserModel model);

    int updateUser(UserModel model);

    int deleteUser(Long id);

    List<UserModel> findByUser(UserModel model);

    UserModel selectByAccountName(String accountname);

    int addOid(Integer oid,Integer id);

    int setOidNull(Integer id);
}
